package com.dimanche.library_db.base;

import androidx.annotation.NonNull;
import androidx.databinding.BaseObservable;
import androidx.room.ColumnInfo;
import androidx.room.PrimaryKey;

/**
 * author : Dimanche
 * date   : 2021/3/8 17:59
 * desc   :
 * version: 1.0
 */
public class BaseDbEntity {
    @NonNull//主键必须添加这个注解
    @PrimaryKey(autoGenerate = true)//设置主键自动增长，默认为false
    public int id;

    /**
     * 备注
     */
    @ColumnInfo(name = "remark")
    public String remark;
}
